package org.hilo.boot.core;

import org.jretty.util.SimpleLogger;
import org.jretty.util.SimpleLogger.LogImpl;

/**
 * 
 * @author zollty
 * @since 2021年6月23日
 */
public class OUT {
    private static SimpleLogger out = new SimpleLogger("", false);
    
    public static void close() {
        out.close();
    }
    
    public static boolean isEnabled() {
        return out.isEnabled();
    }
    
    public static void setLogImpl(LogImpl logImpl) {
        out.setLogImpl(logImpl);
    }
    
    public static SimpleLogger getLogger() {
        return out;
    }
    
    public static void print(String message) {
        out.print(message);
    }

    public static void log(Object message) {
        out.log(message);
    }

    public static void log(Throwable e) {
        out.log(e);
    }

    public static void log(Throwable e, Object message) {
        out.log(e, message);
    }

    public static void log(Object message, Object... msgParams) {
        out.log(message, msgParams);
    }

    public static void log(Throwable e, Object message, Object... msgParams) {
        out.log(e, message, msgParams);
    }

    public static void log(Object message, Object p0) {
        out.log(message, p0);
    }

    public static void log(Object message, Object p0, Object p1) {
        out.log(message, p0, p1);
    }

    public static void log(Object message, Object p0, Object p1, Object p2) {
        out.log(message, p0, p1, p2);
    }

    public static void log(Object message, Object p0, Object p1, Object p2, Object p3) {
        out.log(message, p0, p1, p2, p3);
    }

    public static void log(Object message, Object p0, Object p1, Object p2, Object p3, Object p4) {
        out.log(message, p0, p1, p2, p3, p4);
    }

    public static void log(Object message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) {
        out.log(message, p0, p1, p2, p3, p4, p5);
    }

    public static void log(Object message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) {
        out.log(message, p0, p1, p2, p3, p4, p5, p6);
    }

    public static void log(Object message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6,
            Object p7) {
        out.log(message, p0, p1, p2, p3, p4, p5, p6, p7);
    }

    public static void err(Object message) {
        out.err(message);
    }

    public static void err(Throwable e) {
        out.err(e);
    }

    public static void err(Throwable e, Object message) {
        out.err(e, message);
    }

    public static void err(Object message, Object... msgParams) {
        out.err(message, msgParams);
    }

    public static void err(Throwable e, Object message, Object... msgParams) {
        out.err(e, message, msgParams);
    }

    public static void err(Object message, Object p0) {
        out.err(message, p0);
    }

    public static void err(Object message, Object p0, Object p1) {
        out.err(message, p0, p1);
    }

    public static void err(Object message, Object p0, Object p1, Object p2) {
        out.err(message, p0, p1, p2);
    }

    public static void err(Object message, Object p0, Object p1, Object p2, Object p3) {
        out.err(message, p0, p1, p2, p3);
    }

    public static void err(Object message, Object p0, Object p1, Object p2, Object p3, Object p4) {
        out.err(message, p0, p1, p2, p3, p4);
    }

    public static void err(Object message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) {
        out.err(message, p0, p1, p2, p3, p4, p5);
    }

    public static void err(Object message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) {
        out.err(message, p0, p1, p2, p3, p4, p5, p6);
    }

    public static void err(Object message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6,
            Object p7) {
        out.err(message, p0, p1, p2, p3, p4, p5, p6, p7);
    }

}
